projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
782acf7
)
ddr: altera: Init the rule ID in debug code
author
Marek Vasut
<
[email protected]
>
Tue, 29 Dec 2015 08:38:52 +0000
(09:38 +0100)
committer
Marek Vasut
<
[email protected]
>
Sat, 16 Jan 2016 06:07:22 +0000
(07:07 +0100)
Init the rule ID, otherwise the debug code will always dump the
protection settings entry 0.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Chin Liang See <
[email protected]
>
Cc: Dinh Nguyen <
[email protected]
>
Cc: Dinh Nguyen <
[email protected]
>
drivers/ddr/altera/sdram.c
patch
|
blob
|
history
diff --git
a/drivers/ddr/altera/sdram.c
b/drivers/ddr/altera/sdram.c
index 1ed2883d1b8460795117a1d21ff0a3e2188f906f..299694217279b1cc9aa51ec3947f7e3c10867ae9 100644
(file)
--- a/
drivers/ddr/altera/sdram.c
+++ b/
drivers/ddr/altera/sdram.c
@@
-218,6
+218,7
@@
static void sdram_dump_protection_config(void)
readl(&sdr_ctrl->protport_default));
for (rules = 0; rules < 20; rules++) {
+ rule.rule = rules;
sdram_get_rule(&rule);
debug("Rule %d, rules ...\n", rules);
debug(" sdram start %x\n", rule.sdram_start);